#include <string>
#include <vector>
#include "../../include/cppjieba/Jieba.hpp"
using std::vector;
using std::string;
using Jieba = cppjieba::Jieba;


class SplitTool {
public:
    SplitTool()
    :_jieba("../../include/cppjieba/dict/jieba.dict.utf8",
            "../../include/cppjieba/dict/hmm_model.utf8", 
            "../../include/cppjieba/dict/user.dict.utf8",
            "../../include/cppjieba/dict/idf.utf8",
            "../../include/cppjieba/dict/stop_words.utf8"){}
    ~SplitTool(){}

    vector<string> cutSmall(const string str, int size) {
        vector<string> words;
        _jieba.CutSmall(str, words, size);
        return words;
    }
   
    vector<string> cut(const string str) {
        vector<string> words;
        _jieba.Cut(str, words);
        return words;
    }

private:
    Jieba _jieba;

};
